package com.jhgsys.internal.hazard.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;


/**
 * 隐患上报 Entity
 *
 * @author wanghw
 * @date 2024-08-20 09:23:04
 */
@Data
@TableName("hazard_report")
public class HazardReport implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "report_id", type = IdType.ASSIGN_UUID)
    @Size(max = 32, message = "{noMoreThan}")
    private String reportId;

    /**
     * 公司Id
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String tenantId;

    /**
     * 报告编号;年+公司编码+序列号（5位）
     */
    @TableField(value = "report_no")
    @Size(max = 64, message = "{noMoreThan}")
    private String reportNo;

    /**
     * 项目Id
     */
    @TableField("project_id")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String projectId;

    /**
     * 项目名称
     */
    @TableField("project_name")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String projectName;

    /**
     * 位置区域Id
     */
    @TableField("area_id")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String areaId;

    /**
     * 位置区域
     */
    @TableField("area_name")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String areaName;

    /**
     * 区域负责人Id
     */
    @TableField("area_leader_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String areaLeaderId;

    /**
     * 区域负责人
     */
    @TableField("area_leader_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String areaLeaderName;

    /**
     * 隐患类型
     */
    @TableField("hazard_operation")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String hazardOperation;

    /**
     * 隐患描述
     */
    @TableField("hazard_description")
    @NotBlank(message = "{required}")
    @Size(max = 800, message = "{noMoreThan}")
    private String hazardDescription;

    /**
     * 隐患地点
     */
    @TableField("hazard_place")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String hazardPlace;

    /**
     * 不安全行为或状态;SAFETY_HAZARD_UNSAFE_FORM
     */
    @TableField("unsafe_name")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String unsafeName;

    /**
     * 截至日期
     */
    @TableField("rectification_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date rectificationDate;

    /**
     * 整改措施
     */
    @TableField("rectification_measures")
    @Size(max = 800, message = "{noMoreThan}")
    private String rectificationMeasures;

    /**
     * 责任人Id
     */
    @TableField("leader_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String leaderId;

    /**
     * 责任人姓名
     */
    @TableField("leader_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String leaderName;

    /**
     * 责任人工号
     */
    @TableField("leader_no")
    @Size(max = 64, message = "{noMoreThan}")
    private String leaderNo;

    /**
     * 责任人部门Id
     */
    @TableField("leader_dept_id")
    @Size(max = 255, message = "{noMoreThan}")
    private String leaderDeptId;

    /**
     * 责任人部门
     */
    @TableField("leader_dept_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String leaderDeptName;

    /**
     * 制定计划时间
     */
    @TableField("plan_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date planDate;

    /**
     * 计划制定人Id
     */
    @TableField("plan_formulate_user_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String planFormulateUserId;

    /**
     * 计划制定人姓名
     */
    @TableField("plan_formulate_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String planFormulateName;

    /**
     * 计划制定人工号
     */
    @TableField("plan_user_no")
    @Size(max = 64, message = "{noMoreThan}")
    private String planUserNo;

    /**
     * 计划制定人部门Id
     */
    @TableField("plan_user_dept_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String planUserDeptId;

    /**
     * 计划制定人部门
     */
    @TableField("plan_user_dept_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String planUserDeptName;

    /**
     * 反馈内容
     */
    @TableField("feedback_content")
    @Size(max = 800, message = "{noMoreThan}")
    private String feedbackContent;

    /**
     * 反馈日期
     */
    @TableField("feedback_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date feedbackDate;

    /**
     * 奖励积分
     */
    @TableField("bonus_points")
    private Integer bonusPoints;
    /**
     * 是否Nearmiss;0：否 1：是
     */
    @TableField("nearmiss_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String nearmissFlg;

    /**
     * 审核备注
     */
    @TableField("audit_remark")
    @Size(max = 800, message = "{noMoreThan}")
    private String auditRemark;

    /**
     * 审核用户Id
     */
    @TableField("audit_user_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String auditUserId;

    /**
     * 审核用户姓名
     */
    @TableField("audit_real_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String auditRealName;

    /**
     * 审核时间
     */
    @TableField("audit_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date auditDate;

    /**
     * 转发警示教训;0：否 1：是
     */
    @TableField("cautionary_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String cautionaryFlg;

    /**
     * 签发用户Id
     */
    @TableField("issuance_user_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String issuanceUserId;

    /**
     * 签发用户名称
     */
    @TableField("issuance_real_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String issuanceRealName;

    /**
     * 签发日期
     */
    @TableField("issuance_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date issuanceDate;

    /**
     * 删除备注
     */
    @TableField("deleted_remark")
    @Size(max = 800, message = "{noMoreThan}")
    private String deletedRemark;

    /**
     * 转发标记 1：未转发 2：转发待审核 3：转发完成
     */
    @TableField("forward_flg")
    @Size(max = 2, message = "{noMoreThan}")
    private String forwardFlg;

    /**
     * 转发用户ID
     */
    @TableField("forward_to_user_id")
    @Size(max = 32, message = "{noMoreThan}")
    private String forwardToUserId;

    /**
     * 转发用户姓名
     */
    @TableField("forward_to_user_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String forwardToUserName;

    /**
     * 转发用户号
     */
    @TableField("forward_to_user_no")
    @Size(max = 150, message = "{noMoreThan}")
    private String forwardToUserNo;

    /**
     * 转发用户部门ID
     */
    @TableField("forward_to_user_dept_id")
    @Size(max = 255, message = "{noMoreThan}")
    private String forwardToUserDeptId;

    /**
     * 转发用户部门名称
     */
    @TableField("forward_to_user_dept_name")
    @Size(max = 150, message = "{noMoreThan}")
    private String forwardToUserDeptName;

    /**
     * 转发备注
     */
    @TableField("forward_to_remark")
    @Size(max = 150, message = "{noMoreThan}")
    private String forwardToRemark;


    /**
     * 状态;1：待提交 2：制定计划  3：整改反馈 4：整改反馈中 5：整改待审核 6：待签发 7：已签发  10：已删除（待分拣）  11：退回（制定计划） 12：退回（整改反馈）13：退回（整改审核）
     */
    @TableField("status")
    @NotBlank(message = "{required}")
    @Size(max = 2, message = "{noMoreThan}")
    private String status;

    /**
     * 新增人
     */
    @TableField("created_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String createdBy;

    /**
     * 新增时间
     */
    @TableField("created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    /**
     * 修改人
     */
    @TableField("updated_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String updatedBy;

    /**
     * 修改时间
     */
    @TableField("updated_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    /**
     * 删除人
     */
    @TableField("deleted_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String deletedBy;

    /**
     * 删除时间
     */
    @TableField("deleted_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deletedTime;

    /**
     * 删除标记
     */
    @TableField("deleted_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String deletedFlg;

}